
let buttons = [{
    name: "查 询",
    value: 'Search',
    icon: 'md-search',
    class: 'dropdown',
    type: 'info',
    onClick: function () {
        this.search();
    }
},
// {
//     name: "重 置",
//     icon: 'md-refresh',
//     class: '',
//     type: 'success',
//     onClick: function () {
//         this.resetSearch();
//     }
// },

{
    name: "新 建",
    icon: 'md-add',
    value: 'Add',
    class: '',
    type: 'error',
    onClick: function () {  
        this.add();
    }
}, {
    name: "编 辑",
    icon: 'md-create',
    value: 'Update',
    class: '',
    type: 'success',
    onClick: function () {
        this.edit();
    }
}, {
    name: "删 除",
    icon: 'md-close',
    class: '',
    value: 'Delete',
    type: 'warning',
    onClick: function () {
        this.del();
    }
},
{
    name: "发 卡",
    icon: 'md-add',
    class: '',
    value: 'FK',
    type: 'error',
    onClick: function () {
        this.hairpin()
    },
},
{
    name: "开卡",
    icon: 'md-add',
    class: '',
    value: 'KK',
    type: 'error',
    onClick: function () {
        this.activateCcard()
    },
},
{
    name: "发券",
    icon: 'md-add',
    class: '',
    value: 'FQ',
    type: 'error',
    onClick: function () {
        this.issueCoupons()
    },
},
,
{
    name: "同步菜品",
    icon: 'md-add',
    class: '',
    value: 'DownloadFood',
    type: 'error',
    onClick: function () {
        this.AddDownloadFood()
    },
},
{
    name: "手工录入",
    icon: 'md-add',
    value: 'SGLR',
    class: '',
    type: 'error',
    index: 1,//显示的位置
    onClick: function () {
        this.$refs.gridHeader.open2();
        this.$refs.gridHeader.algorithm()
    }},
{
    name: "订单预约",
    icon: 'md-add',
    value: 'cmyy',
    class: '',
    type: 'primary',
    index: 1,//显示的位置
    onClick: function () {
        this.$refs.gridHeader.open();
    }
},
// {
//     name: "批量预约",
//     icon: 'md-add',
//     value: 'cmplyy',
//     class: '',
//     type: 'primary',
//     index: 1,//显示的位置
//     onClick: function () {
//         this.$refs.gridHeader.open2();
//     }
// },
{
    name: "审 核",
    icon: 'md-create',
    class: '',
    value: 'Audit',
    type: 'error',
    onClick: function () {
        this.audit();
    }
},
{
    name: "导 入",
    icon: 'md-color-fill',
    class: '',
    value: 'Import',
    onClick: function () {
        this.import();
    }
}, {
    name: "刷 新",
    icon: 'md-refresh',
    class: '',
    type: 'success',
    onClick: function () {
        this.refresh();
    }
},
{
    name: "导 出",
    icon: 'md-share-alt',
    class: '',
    value: 'Export',
    onClick: function () {
        this.export();
    }
},
{
    name: "下 单",
    icon: 'md-arrow-down',
    class: '',
    value: 'order',
    type: 'success',
    onClick: function () {
        this.order()
    },

},
{
    name: "转订单",
    icon: 'md-add-circle',
    class: '',
    value: 'Merges',
    type: 'success',
    onClick: function () {
        this.merge()
    },

},
{
    name: "收款场景管理",
    icon: 'md-add-circle',
    class: '',
    value: 'payment',
    type: 'success',
    onClick: function () {
        this.payment()
    },

},
]

export default buttons
